<!DOCTYPE html>

 <html lang="en">

  <meta charset="UTF-8">

  <title>CSS Reftest Reference</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">

  <style>
  div
    {
      font-size: 60px;
      line-height: 90px;
    }

  div#overlapped-line
    {
      color: transparent;
      margin-bottom: -90px;
    }

  span#single-word
    {
      background-color: yellow;
    }

  span#overlapping-line
    {
      background-color: rgba(0%, 50%, 100%, 0.5);
      /*
      a very lite blue color
      according to
      https://www.colorhexa.com/7fbfff
      */
      color: yellow;
    }
  </style>

  <script>
  function startTest()
  {
  document.getElementById("reference").blur();
  /*
  Some browsers, like Chromium 80+, will
  transfer focus to a selected element
  like a contenteditable div and
  therefore style the border of
  such element. We remove such
  focus with the blur() method.
  */
  }
  </script>

  <body onload="startTest();">

  <p>PREREQUISITE: User agent needs to have an enabled and capable grammar error module. If it does not, then this test does not apply to such user agent.

  <p>Test passes

  <ul>
    <li>if each glyph of the sentence is yellow
    <li>if "thing" has a desaturated lime green background
    <li>if the other words have a very lite blue background and
    <li>if there is no red.
  </ul>

  <div id="overlapped-line">Many <span id="single-word">thing</span> can happen.</div>

  <div contenteditable="true"><span id="overlapping-line">Many thing can happen.</span></div>
